home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1996 January / macformat-033.iso / mac / Shareware City / Developers / ABox.v1.8 / Header Files / ABUEnvQD.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-23  |  3.4 KB  |  126 lines  |  [TEXT/MMCC]

  1. /*    
  2.     Copyright © 1991-1995 by TopSoft Inc.  All rights reserved.
  3.  
  4.     You may distribute this file under the terms of the TopSoft
  5.     Artistic License, accompanying this package.
  6.     
  7.     This file was developed by George (ty) Tempel in connection with TopSoft, Inc..
  8.     See the Modification History for more details.
  9.  
  10. Product
  11.     About Box
  12.  
  13. FILE
  14.     ABUEnvQD.h
  15.  
  16. NAME
  17.     ABUEnvQD.h, part of the ABox project source code,
  18.     a utility class, mixed into other classes, responsible for 
  19.     handling the AboutBox quickdraw/color-quickdraw stuff.
  20.  
  21. DESCRIPTION
  22.     This file contains defines for the about box modules.
  23.     
  24. DEVELOPED BY
  25.     George (ty) Tempel                netromancr@aol.com
  26.     All code in this file, and its associated header file was
  27.     Created by George (ty) Tempel in connection with the TopSoft, Inc.
  28.     "FilterTop" application development, except where noted.
  29.  
  30. CARETAKER - George (ty) Tempel <netromancr@aol.com>
  31.      Please consult this person for any changes or suggestions to this file.
  32.  
  33. MODIFICATION HISTORY
  34.  
  35.     dd mmm yy    -    xxx    -    patchxx: description of patch
  36.     16 June 94    -    ty    -    Initial Version Created
  37.     20-july-94    -    ty    -    initial version released
  38.     10-mar-95    -    ty    -    1.2 addition of various static methods moved from
  39.                                 ABObject; addition of method for examining
  40.                                 the port, active screen, and pixel depth
  41.     23-may-95    -    ty    -    changes for compatibility with the CodeWarrior CW6
  42.                             release and the associated Universal Headers from Apple:
  43.                             most methods that returned references now have "Ref" at
  44.                             the end of their methods names to prevent possible collisions
  45.                             with datatypes and classes of the same name (older versions
  46.                             of the compiler didn't have a problem with this).
  47.  
  48. */
  49.  
  50. /*===========================================================================*/
  51.  
  52. /*========== Exclusion Macros ============*/
  53.  
  54. #pragma    once
  55.  
  56. #ifndef    _ABUEnvQD_
  57. #define    _ABUEnvQD_
  58.  
  59.  
  60. /*============ Header Files ==============*/
  61.  
  62. #include    "ABUEnv.h"
  63.  
  64. /*=========== External Linkage ===========*/
  65.  
  66. /*================ Macros ================*/
  67.  
  68. //    kABminPixelDepthForBezel, kABbezelShades, kABbezelWidth are
  69. //    used primarily by DrawFrame/EraseFrame to determine if a 
  70. //    3-d bezel should be drawn around an area. A simple ruled
  71. //    rect will be drawn if the current graphics device is
  72. //    not at least kABminPixelDepthForBezel deep.
  73. #define    kABdefaultScreenDepth            ((short)1)
  74. #define    kABminPixelDepthForBezel            4
  75. #define    kABbezelShades                        1
  76. #define    kABbezelWidth                        1
  77.  
  78. /*============== Constants ===============*/
  79.  
  80.  
  81. /*================ Enums =================*/
  82.  
  83. /*=============== Structs ================*/
  84.  
  85. /*=============== Typedefs ===============*/
  86.  
  87.  
  88. /*=========== Class Definitions ==========*/
  89.  
  90. class    ABUEnvQD : ABUEnv
  91. {
  92.     public:
  93.                         ABUEnvQD(void);
  94.         virtual            ~ABUEnvQD(void);
  95.     
  96.         virtual    Boolean    IsPresent(void);
  97.     
  98.         virtual    long    CheckVersion(void);
  99.         virtual    long    CheckFeatures(void);
  100.  
  101.                 Boolean    HasColorQD(void);
  102.         
  103.                 Boolean    IsColorPort(void) const;
  104.         static    Boolean IsColorPort(GrafPtr inGrafPtr);
  105.                 Boolean IsActiveScreenDevice(GDHandle inGDevice) const;
  106.  
  107.         static    Boolean    IsColorPort(void);
  108.         static    Boolean IsActiveScreenDevice(GDHandle inGDevice);
  109.  
  110.         static short    GetPixelDepth(GDHandle inDevice);
  111.                 
  112.                 long    GetVersion(void) const { return this->VersionRef(); }
  113.                 void    SetVersion(long inVersion)  { this->VersionRef() = inVersion; }
  114.                 
  115.     protected:
  116.         
  117.     private:
  118.         long            mVersion;
  119.         long&            VersionRef(void) const { return this->mVersion; }
  120. };
  121.  
  122.  
  123. /*========== Function Prototypes =========*/
  124.  
  125.  
  126. #endif    // _ABUEnvQD_